package com.itheima;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import jakarta.annotation.PostConstruct;
import org.springframework.boot.web.servlet.ServletComponentScan;

import java.util.Locale;
import java.util.TimeZone;


@ServletComponentScan
@SpringBootApplication
public class TliasWebManagerApplication {

    @PostConstruct
    void started() {
        // 设置默认时区为上海
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
        // 设置默认语言为中文
        Locale.setDefault(Locale.SIMPLIFIED_CHINESE);
    }

    public static void main(String[] args) {
        SpringApplication.run(TliasWebManagerApplication.class, args);
    }

}